<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<%@taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%@ taglib uri="http://java.sun.com/jsp/jstl/functions" prefix="fn" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>Insert title here</title>
</head>
<style type="text/css">
#main{
width:100%;
height:800px;;
background: #eee;
border:3px solid #000;
float:center;
}
#top{
width:100%;
height:40px;
border:3px solid #000
}
#all{
width:70%;
height:750px;
float:center;
border:3px solid #000
}
#lead{
width:100%;
height:60px;
border:3px solid #000
}
#button{
	width:100%;
	height:685px;
	border:3px solid #000
}
body,table{ 
font-size:16px; 
} 
table{ 
table-layout:fixed; 
empty-cells:show; 
border-collapse: collapse; 
margin:0 auto; 
} 
td{ 
height:30px; 
} 
h1,h2,h3{ 
font-size:18px; 
margin:0; 
padding:0; 
} 
.table{ 
border:1px solid #cad9ea; 
color:#666; 
} 
.table th { 
background-repeat:repeat-x; 
height:30px; 
} 
.table td,.table th{ 
border:1px solid #cad9ea; 
padding:0 1em 0; 
} 
.table tr.alter{ 
background-color:#f5fafe; 
} 



</style> 


<body>
<div id="main">
<div id="top">
<p>欢迎你，${loginer }老师</p>
</div>
<div id="all">
<div id="lead">
<form action="" method="post">
班级：
<select>
<option>全部</option>
<c:forEach var="bj" items="${bjs }" varStatus="status">
<option>${bj.name }</option>
</c:forEach>
</select>
&nbsp;时间：<input type="text" name="time" /> 
&nbsp;姓名：<input type="text" name="stu_name" />
&nbsp;<input type="submit" value="查询 " />
</form>
</div>
<div id="button">
<center><h3>当日考勤<%=new java.util.Date() %></h3></center>
<c:forEach var="list" items="${lists }" varStatus="status">
<p>${list.clazzName }
<table class="table">
<tr>
<th>考核状态</th>
<th>学号</th>
<th>姓名</th>
<th>次数</th>
<th>详情</th>
</tr>
<tr>
<td><a href="getchidao.do">迟到</a></td>
<td colspan="4">
<table id="in">
<c:forEach var="ws" items="${list.chidao }" varStatus="status">
<tr>
<td>${ws.code }</td>
<td><a href="showstu.do?stu_id=${ws.code }">${ws.name }</a></td>
<td>${ws.count }</td>
<td><a href="gerenchidao.do?stu_id=${ws.code }">查看</a></td>
</tr>
</c:forEach>
</table>
<tr>
<td><a href="getqingjia.do">请假</a></td>
<td colspan="4">
<table style=null>
<c:forEach var="ws" items="${list.qingjia }" varStatus="status">
<tr>
<td>${ws.code }</td>
<td><a href="showstu.do?stu_id=${ws.code }">${ws.name }</a></td>
<td>${ws.count }</td>
<td><a href="gerenqingjia.do?stu_id=${ws.code }">查看</a></td>
</tr>
</c:forEach>
</table>
<tr>
<td><a href="getkuangke.do">旷课</a></td>
<td colspan="4">
<table>
<c:forEach var="ws" items="${list.kuangke }" varStatus="status">
<tr>
<td>${ws.code }</td>
<td><a href="showstu.do?stu_id=${ws.code }">${ws.name }</a></td>
<td>${ws.count }</td>
<td><a href="gerenkuangke.do?stu_id=${ws.code }">查看</a></td>
</tr>
</c:forEach>
</table>
</td>
</tr>
<tr>
<td>总计</td>
<td colspan="4">迟到：<c:out value="${fn:length(list.chidao)}"></c:out> &nbsp;
请假：<c:out value="${fn:length(list.qingjia)}"></c:out> &nbsp;
旷课：<c:out value="${fn:length(list.kuangke)}"></c:out> &nbsp;
</td>
</tr>
</table>
</c:forEach>
</div>
</div>
</div>
</body>
</html>